package com.oracle.rentcar.service;

import com.github.pagehelper.PageInfo;
import com.oracle.rentcar.pojo.Customer;
import org.springframework.ui.Model;

import java.util.List;
import java.util.Map;

public interface CustomerService {
    //查询全部
    List<Customer> selectCustomer();

    //删除(根据id)
    void delete(int id);

    //批量删除数据
    int removeCustomers(Integer[] ids);

    //查询总记录数
    long count();

    //根据id查询用户
    Customer getCustomerById(Integer id);

    //修改用户
    void updateCustomerById(Customer customer);

    //分页查询
    PageInfo<Map<String, Object>> findCustomerByPage(int currentPage, String cusName, String phone);

    // 判断会员名是否存在
    public boolean checkCustomerNameExist(String cusName);

    //注册用户
    int reg(Customer customer);
}
